package custom;

import java.io.IOException;
import java.util.ResourceBundle;

import javax.faces.context.FacesContext;

import org.primefaces.component.api.UIData;

public class PrevPageLinkRendererC extends PageLinkRendererCustom implements
		PaginatorElementRendererCustom {

	ResourceBundle rb = ResourceBundle
			.getBundle("com.davivienda.oneclick.bundle.messages");

	public void render(FacesContext context, UIData uidata) throws IOException {
		boolean disabled = uidata.getPage() == 0;

		super.render(context, uidata, UIData.PAGINATOR_PREV_PAGE_LINK_CLASS,
				UIData.PAGINATOR_PREV_PAGE_ICON_CLASS, disabled,
				"< " + rb.getString("anterior"));
	}
}
